package org.seedframework.sharding.mybatis;


import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.session.Configuration;
import java.util.HashMap;
import java.util.Map;

@Slf4j
public class MultiWriteSupport {

    private static Map<String, String> methods = new HashMap<>();

    private static Configuration configuration = null;

    public static void addMethodPath(String path, String groupName) {
        methods.put(path, groupName);
    }

    public static String getGroupName(String path) {
        return methods.get(path);
    }




    public static void setConfiguration(Configuration config) {
        MultiWriteSupport.configuration = config;
    }

}
